<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>订单详情orderDetail</title>
	</head>
	<link rel="stylesheet" href="../css/common.css" />
	<link rel="stylesheet" href="../css/less/common_less.css" />
	<link rel="stylesheet" href="../css/orderDetail.css" />
	<style>
		
	</style>
	<body>
		<p class='head'>
			<span style='margin-left:15px;'>订单号：<span class='orderNo' id="order_id"></span></span>
			<span style='margin-left:15px;'>(平台订单号:<span class='orderPfNo' id="platformOrderId"></span>)</span>
			<span class='contractIdSpan' style='margin-left:15px;'>合同号：<span class='contractId'></span></span>					
			<span style="display:none;" class="baojiaCurrency"></span>
			<span class="SANKE">
				<!-- <span class="audit_SANKE">审核</span>
				<span class="cancel_SANKE">取消订单</span> -->
			</span>
			<label class="offright"><!--  <span class='onOff'>关闭</span>--></label>				
		</p>
		<div class="orderMessage">
			<p class='title'>
				<span><i class='quare'></i>订单信息</span>
			</p>
			<div class="orderMessageTBox">
				<table class="orderMessageTable">
					<tr>
						<th>状态</th>
						<th>订单总价</th>
						<th>客户</th>
						<th>采购商</th>
						<th><span class="sanke_mess">合同座位数</span><span class="sanke_mess——renshu">人数</span></th>
						<th class="sanke_mess">出票率</th>
						<th class="sanke_mess">票损率</th>
						<th class="sanke_mess">票损</th>
						<th class="sanke_mess">免票方案</th>
					</tr>
					<tr>
						<td style='color:red;' id="status"></td>
						<td><span style='color:red;' class='orderPrice' id="price"></span><span class="currency1"></span></td>
						<td id="createUserName"></td>
						<td class='purchaseName'></td>
						<td class='passengerTotal'></td>
						<td class="ticketRate_ sanke_mess"></td>
						<td class="ticketLossRate_ sanke_mess"></td>
						<td class="ticketLoss_ sanke_mess"></td>
						<td class="freeFareName_ sanke_mess"></td>
					</tr>
				</table>
			</div>
		</div>
		<p class='title'>
			<span><i class='quare'></i>航班信息</span>
		</p>
		<div class='contentBox'>
			<div class='content'>
				<p class='times'>第 1 程航班</p>
				<table>
					<tr>
						<th>序号</th>
						<th>行程</th>
						<th>航班号</th>
						<th>舱位</th>
						<!-- <th>机型</th> -->
						<th>出发日期</th>
						<th>出发时间</th>
						<th>到达日期</th>
						<th>到达时间</th>
					</tr>
					<tbody class="clear">
					</tbody>
				</table>
			</div>
			
			<!-- 分页功能没未有添加 -->
		</div>
		<p class='title'>
			<span><i class='quare'></i>旅客与出票信息</span>
			<span class='peopleTotal'>总计：成人<span id="audlt"></span>/<span class='ZFaudlt'></span>人,儿童<span id="child"></span>/<span class='ZFchild'></span>人,婴儿<span id="infant"></span>/<span class='ZFinfant'></span>人</span>		
			<span class="someDoRight">							
				<span class="updateright"></span>
				<span class="importNamesright"></span>
				<span class='show1 iconfont' onOff="show" title="展开收起">&#xe806;</span>
			</span>
		</p>
		<div class='contentBox passengersInformation '>
			<div class='content' style='padding-top:20px;'>
				<table class="hover_grogshop">
					<tr>
						<th>序号</th>
						<th>旅客姓名</th>
						<th>性别</th>
						<th>旅客类型</th>
						<th>证件类别</th>
						<th>证件号</th>
						<th>证件有效期</th>
						<th>出生日期</th>
						<th>手机号</th>
						<th>出票航段</th>
						<th>邮箱</th>
						<th>票号</th>
						<th>成人</th>
						<th>酒店</th>
					</tr>
					<tbody class="clearPassenger"></tbody>
				</table>
			</div>
		</div>
		<p class='title'>
			<span><i class='quare'></i>票价与支付</span>
		</p>
		<div class='contentBox'>
			<div class='content' style='padding-top:20px;'>
				<table>
					<tr>
						<th>旅客类型</th>
						<th>票价</th>
						<th>税金</th>
						<th>结算单价/报价单价</th>
						<th>旅客人数</th>
						<th>总费用<span class="currency2"></span></th>	
						<th>实收金额<span class="currency3"></span></th>					
					</tr>
					<tbody class="pjzf"></tbody>
				</table>
			</div>
		</div>
		<p class='title fujiaxiang'>
			<span style='margin-left:20px;' class="font00aa98">附加项</span>
			<span style='margin-left:20px;'>合计:<span class='money' style='color:red;'></span><span class="currency1"></span></span>
			<span class="someDoRight">
				<span class='showFujia iconfont' onOff="hide" title="展开收起">&#xe807;</span>
			</span>
		</p>
		<div class='changeTicketsAndSeat'>
			<p class='changeTicketsP someCommonEle' style='height:36px;line-height:36px;padding-left:20px;'>调票<label class="noteright someDoRight"></label></p>
			<table class='changeTickets'>
				<tr>
					<th>附加项</th>
					<th>人数</th>
					<th>单价<span class="currency2"></span></th>
					<th>总价<span class="currency2"></span></th>
					<th class="pass1">退款路径</th>
					<th>备注</th>
				</tr>
				<tbody class="changeTicketsClear"></tbody>				
			</table>
			<p class="someCommonEle" style='height:36px;line-height:36px;padding-left:20px;'>税金<label class="taxright someDoRight"></label></p>
			<table class='taxesTable'>
				<tr>
					<th>附加项</th>
					<th>人数</th>
					<th>单价<span class="currency2"></span></th>
					<th>总价<span class="currency2"></span></th>
					<th>实收金额</th>
					<th class="pass2">退款路径</th>
					<th>备注</th>
					<th>是否已支付</th>
				</tr>
				<tbody class="taxesTableClear"></tbody>				
			</table>			
		</div>
		<div class="tzpk"><!-- 调整票款信息 -->
			<p class="someCommonEle" style='height:45px;line-height:45px;padding-left:20px;'><b class="font00aa98">调整票款</b><label class="someDoRight editTZPKRight"><span title="收起展开" onOff="hide" class='tzpkShow iconfont'>&#xe807;</span></p>
			<table class='tiaoPiaoTable'>
				<tr>
					<th>附加项</th>
					<th>金额<span class="currency2"></span></th>
					<th>实收金额</th>
					<th class="pass3">退款路径</th>
					<th>备注</th>
				</tr>
				<tbody class="editTZPKTableClear"></tbody>				
			</table>
		</div>
		<div class='connectList'> <!-- 联运信息 -->
			
		</div>
		<div class="seatUpContent">  <!-- 升舱信息 -->
			
		</div>		
		<div class="zhuiWeiContent"><!-- 追位信息  -->
			
		</div>
		<div class="changePassengerMessContent"><!-- 修改旅客信息信息  -->
			
		</div>
		<div class='btnBox'>
			<button class='add_back'>返回</button>	
		</div>
		<div id="seatAddPermission" style="display:none;"></div><!-- 追位控制权限 -->
		<div id="changePassengerMessPermission" style="display:none;"></div><!-- 修改旅客信息控制权限 -->
	</body>
		<script type="text/javascript" src="../js/jquery-1.12.4.js" ></script>
		<script type="text/javascript" src="../layer-v2.4/layer/layer.js" ></script>
			<!-- 引入my97日期时间控件 -->
		<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js" charset="utf-8"></script>	
		<script type="text/javascript" src="../js/common.js" ></script>
		<script>
		//_________________________________________________________按钮权限管理 ________________
		
		/*关闭按钮权限*/
		quanXian()
		function quanXian(){
			var offStr="";
			<#if resList?seq_contains("ak/orderManage/close")>
				offStr+="<span class='onOff'>关闭</span>";
			</#if>	
			$(".offright").append(offStr);
			/*更新票号按钮权限*/
			var updateStr="";
			var ticketupdeStr="";
			<#if resList?seq_contains("ak/orderManage/updat")>
				updateStr+="<span class='updateTickets'>更新票号</span>";
				ticketupdeStr+="<span class='ticketUpdate'>更新票号</span>";
			</#if>	
			$(".updateright").append(updateStr);
			$(".ticketupderight").append(ticketupdeStr);
			/* 导入名单 */
			var importNameStr = "";
			<#if resList?seq_contains("ak/orderManage/importNames")>
				importNameStr+="<span class='importNames'>导出名单</span>";
			</#if>
			$(".importNamesright").append(importNameStr);
			/*联运审核按钮权限*/
			var conaduStr="";
			<#if resList?seq_contains("ak/orderManage/conadu")>
				conaduStr+="<input type='hidden' class='conadu'  value='1'>";
			</#if>
			$(".head").append(conaduStr);
			/*删除联程按钮权限*/
			var condelStr="";
			<#if resList?seq_contains("ak/orderManage/condel")>
				condelStr+="<input type='hidden' class='condel'  value='1'>";
			</#if>
			$(".head").append(condelStr);
			/*添加按钮权限 (将三种添加暂设置为一个资源权限)*/
			var addnotes="";//添加调票
			var addtax="";//添加税金
			var addupgrade="";//添加升舱
			<#if resList?seq_contains("ak/orderManage/ad")>
				addnotes+="<span class='addChangeTickets iconfont' title='添加'>&#xe897;</span>"
				addtax+="<span class='addTaxes iconfont' title='添加'>&#xe897;</span>"
				addupgrade+="<span class='addChangeSeats iconfont' title='添加'>&#xe897;</span>"
			</#if>
			$(".noteright").append(addnotes);
			$(".taxright").append(addtax);
			$(".upgraderight").append(addupgrade);	
			//调票编辑按钮权限
			var editTZPKStr = "";
			<#if resList?seq_contains("ak/orderManage/editTiaoPiao")>
				editTZPKStr+="<span class='editTZPK iconfont' title='添加'>&#xe897;</span>";
			</#if>
			$(".editTZPKRight").prepend(editTZPKStr);
			
			//追位的删除和审核权限			
			<#if resList?seq_contains("ak/orderManage/seatAddAudit")>
				$("#seatAddPermission").attr("seatAddAudit","1");
			</#if>
			<#if resList?seq_contains("ak/orderManage/seatAddDel")>
				$("#seatAddPermission").attr("seatAddDel","1");
			</#if>

			//旅客信息修改记录的删除和审核权限
			<#if resList?seq_contains("ak/orderManage/changePassengerMessAudit")>
				$("#changePassengerMessPermission").attr("changePassengerMessAudit","1");
			</#if>
			<#if resList?seq_contains("ak/orderManage/changePassengerMessDel")>
				$("#changePassengerMessPermission").attr("changePassengerMessDel","1");
			</#if>
			
			//散客订单的审核和取消权限
			var SANKEStr = ""
			<#if resList?seq_contains("ak/orderManage/SANKE")>
				SANKEStr += "<span class='audit_SANKE'>审核</span> <span class='cancel_SANKE'>取消订单</span>";
			</#if>	
			$(".SANKE").prepend(SANKEStr);
		}
		
		</script>		
		<script type="text/javascript" src="../js/orderDetail.js" ></script>
</html>
